home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / dos3x.arc / DOS3X.PAT
Encoding:
Text File  |  1986-02-23  |  5.9 KB  |  165 lines

  1.  2/20/86
  2.  
  3.      IBM PROVIDES THE FOLLOWING PATCH FOR DOS 3.0 AND DOS 3.1 
  4.   -------------------------------------------------------------------
  5.  
  6.    DESCRIPTION: This patch corrects a condition where DOS is doing a 
  7.    test on bit 8 to determine if an error code returned from INT 13h   
  8.    should fall into the DMA boundary violation handler. This test is 
  9.    causing error codes other than DMA (09h) to fall into this handler. 
  10.    The patch changes this test to a direct compare.
  11.  
  12.    The patch corrects the same problem with each version of DOS 3.
  13.   ____________________________________________________________________
  14.  
  15.  
  16. The patch is made to the System file IBMBIO.COM. 
  17.  
  18. NOTE: The safest method of doing this is given in the last paragraph
  19. of this document. However, for those who feel sufficiently competant,
  20. and who don't wish to follow that course, the following method is 
  21. presented.
  22.  
  23. It will first be necessary to remove the Hidden/System/Read-only 
  24. attribute, thus making the file a 'normal' file. AFTER you have 
  25. completed the patch process, you MUST RESET this attribute to 
  26. Hidden/System/Read-only.
  27.  
  28. To work with the attibute, you can use the PD program CHMOD, or the 
  29. Norton Utility Ver 3.1's FA.COM, Morgan Computing's DISKTOOL, or IBM's 
  30. DISK REPAIR, a part of the PROFESSIONAL DEBUG package. You cannot use
  31. the DOS utility ATTRIB.COM. 
  32.  
  33. (Just for information, a 'normal' file attibute is either 00h or 20h, 
  34. while a Hidden/System/Read-only attribute is either 07h or 27h. The
  35. attribute is one byte and is located in the Directory entry for the
  36. file, immediately following the last character in the filename 
  37. extension. In this case, after the 'M' in COM.)  
  38.  
  39. See the documentation for whichever program above you've chosen to
  40. determine the procedure to be used.
  41.  
  42.                       *   *   *   *   *   *   *
  43.  
  44.  
  45. NOTE: YOU ARE PATCHING THE HEART OF THE OPERATING SYSTEM... BE VERY
  46.       CAREFUL!!!  IF YOU THINK YOU MAY HAVE MADE A MISTAKE, EXIT 
  47.       BEFORE WRITING THE CHANGES AND START OVER AGAIN. 
  48.  
  49. Format a floppy using the command, FORMAT /S. Set the attribute for
  50. IBMBIO.COM to 'normal' as given above.
  51.  
  52. Use the DOS utility DEBUG.COM, (or MicroSoft's SYMDEB), to make this 
  53. patch. It is assumed that you are familiar with its use.
  54.  
  55. Curiously, the patch changes only 4 bytes, though IBM indicates a 
  56. 5-byte patch.
  57.  
  58. -------------------------------------------------------------------
  59.  
  60. PATCH NUMBER: PATCH31.001
  61.  
  62. Use this patch if you have DOS 3.1:
  63.  
  64. DOS LEVEL: 3.10
  65.  
  66. FILE PATCHED: IBMBIO.COM
  67.  
  68. OFFSET OF PATCH: 09BB   (Note: DEBUG address = 0ABB)
  69.  
  70. NUMBER OF BYTES: 5
  71.  
  72. OLD CODE: F6 C4 08 75 0F
  73.  
  74. NEW CODE: 80 FC 09 74 0F
  75.  
  76.  
  77. In what follows, Do not type the hyphens. The 'xxxx' mean 'don't care'.
  78. At the DOS prompt type: 
  79.  
  80.     DEBUG d:\IBMBIO.COM <cr>    where d: = drive containing IBMBIO.COM
  81.     -D 0ABB L5 <cr>
  82.     xxxx:0AB0     You should see OLD CODE given above starting at 0ABB. 
  83.  
  84.     -E 0ABB  80 FC 09 74 0F <cr>
  85.     -D 0ABB L5 <cr>
  86.     xxxx:0AB0     You should see NEW CODE given above starting at 0ABB.
  87.  
  88.     -W <cr>
  89.     Writing xxxx bytes
  90.     -Q <cr>
  91.  
  92.  Patching complete. Reset the attribute to Hidden/System/Read-only.
  93.  (At this point, you should consider bringing up the file again and
  94.  and doing -D 0ABB L5, just as a final check).
  95.  
  96. ----------------------------------------------------------------------
  97.  
  98. PATCH NUMBER: PATCH30.001
  99.  
  100. Use this patch if you have DOS 3.0
  101.  
  102. DOS LEVEL: 3.00
  103.  
  104. FILE PATCHED: IBMBIO.COM
  105.  
  106. OFFSET OF PATCH: 0964   (Note: DEBUG address = 0A64)
  107.  
  108. NUMBER OF BYTES: 5
  109.  
  110. OLD CODE: F6 C4 08 75 04
  111.  
  112. NEW CODE: 80 FC 09 74 04
  113.  
  114. In what follows, Do not type the hyphens. The 'xxxx' mean 'don't care'.
  115. At the DOS prompt type: 
  116.  
  117.     DEBUG d:\IBMBIO.COM <cr>    where d: = drive containing IBMBIO.COM
  118.     -D 0A64 L5 <cr>
  119.     xxxx:0A60     You should see OLD CODE given above starting at 0A64. 
  120.  
  121.     -E 0A64  80 FC 09 74 04 <cr>
  122.     -D 0A64 L5 <cr>
  123.     xxxx:0A60     You should see NEW CODE given above starting at 0A64.
  124.  
  125.     -W <cr>
  126.     Writing xxxx bytes
  127.     -Q <cr>
  128.  
  129.  Patching complete. Reset the attribute to Hidden/System/Read-only.
  130.  (At this point, you should consider bringing up the file again and
  131.  and doing -D 0A64 L5, just as a final check.) 
  132.  
  133. --------------------------------------------------------------------------
  134.  
  135.  
  136. TO UPDATE IBMBIO.COM ON YOUR HARD DISK:
  137.  
  138.     IMPORTANT!!! DO NOT USE DEBUG TO PATCH IBMBIO.COM ON A HARD DISK.
  139.  
  140. 1.  Complete the above, creating a floppy with the patched 
  141.     IBMBIO.COM, with attibute reset to Hid/Sys/Read-only.  Then:  Copy 
  142.     the DOS utility SYS.COM onto the floppy. Set the default drive to A: 
  143.     and put the floppy in it. Then type SYS C:<cr> (assuming your HD is
  144.     Drive C:). You should then see the message 'system transferred'.
  145.  
  146.     YOU CANNOT SIMPLY USE DEBUG TO PATCH AN IBMBIO.COM THAT RESIDES ON A
  147.     HARD DISK, BECAUSE DEBUG WILL NOT WRITE THE FILE BACK TO THE SAME
  148.     SPACE ON A HARD DISK.  IBMBIO.COM MUST RESIDE IN A SPECIFIC PLACE ON 
  149.     A DISK, and while DEBUG will write it back to the same place it came 
  150.     from on a floppy, it will not do so on a hard disk.
  151.  
  152.                           *   *   *   *
  153.  
  154. If you're patching a hard disk and have a problem, you can always put
  155. your DOS System disk in Drive A:, boot it, and type SYS C:<cr>, which
  156. will replace the system files on the HD, provided of course that you
  157. haven't written anything to the hard disk before doing this.
  158.  
  159. If you are not familiar with DEBUG, or simply don't want to monkey with 
  160. it, then you may obtain the DOS 3 Patch Disk No. 1, from your dealer at 
  161. no charge, (ask them to get it from Dealer Support if they don't have it).
  162. That disk contains an IBM program PATCH.COM, which will make the patch 
  163. automatically.  Since that program is not PD, we cannot post it.
  164.  
  165.